package com.mm.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @ClassName GoodsInsertBo
 * @Description TODO
 * @Author 任昊
 * @Date 2020/12/8 14:22
 */
@Data
@ApiModel(value = "新增物资入参", description = "新增物资入参")
public class GoodsInsertBo {

    @ApiModelProperty(value = "物资编号", name = "goodNo", required = true)
    @NotEmpty(message = "物资编号不能为空")
    private String goodNo;

    @ApiModelProperty(value = "物资名称", name = "goodName", required = true)
    @NotEmpty(message = "物资名称不能为空")
    private String goodName;

    @ApiModelProperty(value = "种类信息", name = "cateId", required = true)
    @NotEmpty(message = "种类信息不能为空")
    private String cateId;

    @ApiModelProperty(value = "部门id", name = "depaId", required = true)
    @NotEmpty(message = "部门id不能为空")
    private String depaId;

    @ApiModelProperty(value = "初始数量(>=0)", name = "goodInitNumber", required = true)
    @NotEmpty(message = "初始数量不能为空")
    private Long goodInitNumber;

    @ApiModelProperty(value = "参考价格", name = "goodPrice", required = true)
    @NotEmpty(message = "参考价格不能为空")
    private Double goodPrice;

    private String token;

}
